package icu.zhhll.lp;

import java.util.List;

/**
 * LP表达式
 *
 * @author zh
 * @date 2023/9/18 10:52
 */
public class LpExpression {


    private final List<LpParam> params;
    private final Sign sign;
    private final long val;

    public LpExpression(List<LpParam> params, Sign sign, long val) {
        this.params = params;
        this.sign = sign;
        this.val = val;

    }

    public List<LpParam> getParams() {
        return params;
    }

    public Sign getSign() {
        return sign;
    }

    public double getVal() {
        return val;
    }

    // 符号
    public enum Sign {
        // 大于
        GT,
        // 小于
        LT,
        // 等于
        EQ
    }
}
